package com.study.demo.gsbean.demo6;

/**
 * @author: elvin
 * @time: 2019-04-25 14:51
 * @desc:
 **/
public class Son extends Father {

    private String desc = getDesc();

    private String abc;

    public Son(){
        super(null);
        System.out.println(" --- Son() ---");
    }

    public Son(String desc){
        super();
        System.out.println(" --- Son() ---");
    }

    private String getDesc(){
        System.out.println(" --- getDesc() ---");
        return "desc";
    }

    public void print(){
        System.out.println(desc);
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getAbc() {
        return abc;
    }

    public void setAbc(String abc) {
        this.abc = abc;
    }
}
